package com.repair.payment.exception;

import com.repair.base.exception.ErrorCode;

/**
 * @author chunyu
 * @since 2024/10/18,20:09
 */
public enum RefundErrorCode implements ErrorCode {

    /**
     * 退款失败
     */
    REFUND_ERROR(13001, "退款失败"),

    /**
     * 重复退款
     */
    REFUND_REPEAT(13002, "重复退款"),

    ;

    private final Integer code;
    private final String message;

    RefundErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
